package mediator.source;

/**
 * 抽象同事类
 * @author Chen Guang
 * @date 2019/4/24 0024 下午 16:57
 */
public abstract class Colleague {

    protected Mediator mediator;

    public Colleague(Mediator mediator) {
        this.mediator = mediator;
    }

    public abstract void sendMsg(String msg, Colleague colleague);

    public abstract void notifyMsg(String msg);
}
